<!-- add by lty 20181222 -->

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>查看详情</title>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <link rel="shortcut icon" href="/favicon.ico">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">

    <link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.2/css/sm.min.css">
    <link rel="stylesheet" href="./service/css/style.css">
    <link rel="stylesheet" href="./service/css/common.css">
    <link rel="stylesheet" href="./service/css/serverDetail.css">
      <!-- 插件js -->
    <script src="../js/jquery-2.1.1.js"></script>
	<script src="../js/zepto.js"></script>
	<script src="../js/sm.js" ></script>
	<script src="../js/sm-extend.js" ></script>
	<script src="../js/request.js"></script>
	<script src="../js/common.js"></script>
	<script src="../jsp/js/houseAppoDetail.js"></script>
	
    <script type="text/javascript">
	window.$$=window.Zepto = Zepto;
	</script>
	<style type="text/css">
	.tolink{
	text-align: -webkit-center;
    margin-top: 10px;
    font-size: 15px;
    color: cornflowerblue;
    cursor: pointer;
    border: 1px solid #ddd;
    width: 80%;
    border-radius: 8px;
    margin-left: 10%;
    padding : 10px;
    background:  #FF9900;
    color: #fff;
	}
	select{
	margin-top: 10px;
	width: 100%;
    height: 35px;
    border-radius: 7px;
	}
	</style>
  </head>
  <body>
    <div class="page">
      <header class="bar bar-nav">
        <a class="button button-link button-nav pull-left" href="javascript:window.history.back();" data-transition='slide-out'>
          <span class="icon icon-left"></span>
        </a>
        <h1 class="title">查看详情</h1>
      </header>

      <!-- 主体内容 -->
      <div class="T_content">
        <!-- 保洁套餐 -->
        <div class="clean--detail">
          <p class="clean_detail--title">预约详情</p>
          <div class="goods_detail--list">
            <ul>
              <li class="cl">
                <span class="sp01 fl">房子名称</span>
                <span class="sp02 fr count" id="houseName"></span>
              </li>
              <li class="cl">
                <span class="sp01 fl">房子地址</span>
                <span class="sp02 fr count" id="houseAddr"></span>
              </li>
              <li class="cl">
                <span class="sp01 fl">预约人名称</span>
                <span class="sp02 fr money" id="nickName"></span>
              </li>
              <li class="cl">
                <span class="sp01 fl">手机号码</span>
                <span class="sp02 fr money" id="phone"></span>
              </li>
              <li class="cl">
                <span class="sp01 fl">看房时间</span>
                <span class="sp02 fr date" id="appointmentTime"><!-- 2018.10.25 --></span>
              </li>
               <li class="cl">
                <span class="sp01 fl">备注</span>
                <span class="sp02 fr date" id="userRemark"><!-- 2018.10.25 --></span>
              </li>
              <li class="cl">
                <span class="sp01 fl">状态</span>
                <span class="sp02 fr date" id="status"><!-- 2018.10.25 --></span>
              </li>
              <li class="cl">
                <span class="sp01 fl">处理情况</span>
               <textarea rows="3" cols="4" style="width: 250px;border: 1px solid #f0f0f0;padding: 5px;margin-left: 10px;border-radius: 12px;" id="handlerRemark"></textarea>
              </li>
            </ul>
          </div>
        <select id="opt_status">
        	<option value="1">待联系</option>
        	<option value="2">已联系,处理中</option>
        	<option value="3">已完成</option>
        </select>
         <button id="saveBtn" style="margin-top: 30px;width: 90%; margin-left: 5%;height: 40px;background: #0894ec;box-shadow: none;border:none;border-radius:8px;">确定</button>
        </div>
       
      </div>
    </div>
    <script>
    var appointmentId = Request.queryString("appointmentId");
    var path = "/LanJuPublic";
    $(function(){
    	houseAppoDetail.getDtailById();
    })
    var statusArr = {
    	"1":"待联系",
    	"2":"已联系,处理中",
    	"3":"已完成"
    }
    function formatDate(a) { 
    	var now= new Date(a);   
    	var year=now.getFullYear(); 
    	var month=now.getMonth()+1; 
    	var date=now.getDate(); 
    	var hour=now.getHours(); 
    	var minute=now.getMinutes(); 
    	var second=now.getSeconds(); 
    	return year+"-"+month+"-"+date+" "+hour+":"+minute+":"+second;   
    	} 
    $(".tolink").click(function (){
    	window.location.href="../cleanComment.html?orderId="+orderId;
    })
    $("#saveBtn").click(function (){
    	houseAppoDetail.edit();
    })
    </script>
  </body>
</html>